<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common/head :: htmlhead">
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-card" >
            <div class="layui-card-header" th:if=" ${status} == 1">出块节点列表</div>
            <div class="layui-card-header" th:if=" ${status} == 0">作恶节点列表</div>
            <div class="layui-card-header" th:if=" ${status} == -1">见证人节点列表</div>
            <div class="layui-card-body" th:if=" ${status} != -1">
                <div class="layui-collapse" lay-filter="test" style="margin-left: 30%;width:50%">
                    <div th:each="node : ${list}" class="layui-colla-item">
                        <h2 class="layui-colla-title" th:text="${node.nodeIndex}"></h2>
                        <div class="layui-colla-content layui-show">
                            <span style="color: #009688"><b>token</b></span>:<br/>
                            &emsp;&emsp;<span th:text="${node.token}"></span><br/>
                            <span style="color: #009688"><b>credit</b></span>:<br/>
                            &emsp;&emsp;<span th:text="${node.creadit}"></span><br/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-card-body" th:if=" ${status} == -1">
                <div class="layui-collapse" lay-filter="test" style="margin-left: 30%;width:50%">
                    <div th:each="node : ${list}" class="layui-colla-item">
                        <h2 class="layui-colla-title" th:text="${node.nodeIndex}"></h2>
                        <div class="layui-colla-content layui-show">
                            <span style="color: #009688"><b>token</b></span>:<br/>
                            &emsp;&emsp;<span th:text="${node.token}"></span><br/>
                            <span style="color: #009688"><b>credit</b></span>:<br/>
                            &emsp;&emsp;<span th:text="${node.creadit}"></span><br/>
                            <span style="color: #009688"><b>vote_round</b></span>:<br/>
                            &emsp;&emsp;<span th:text="${node.round}"></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>

    layui.config({
        base: '/static/lib/' //静态资源所在路径
    }).extend({
        index: 'index' //主入口模块
    }).use(['index','console','table','element','form','layer'],function () {
        var table = layui.table
            ,element = layui.element
            ,form = layui.form;



    });

</script>
</body>
</html>

